home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / 422mods.zip / TFC011.422 < prev    next >
Text File  |  1993-03-09  |  4KB  |  110 lines

  1. 2TFC011.MOD 1Warn User of Off-line Files
  2. The Flying Chicken [SysOp] #1 @12456
  3. 3Sunday, March 7, 1993  1 7:57 pm
  4.  
  5. TFC011.MOD - Warn User of Off-Line Files
  6. Author: The Flying Chicken 1@12456 (WWIVLink) 1@2456 (WWIVNet) 1@2456 (IceNet)
  7. Source: WWIV 4.20 thru 4.22
  8. Version: 1.2
  9.  
  10.     This is another one of those useless but useful mods that I
  11.     did.  For some reason, people don't seem to understand what
  12.     -> FILE NOT THERE <- means, and will try to download the
  13.     file anyway.  I got tired of seeing this, so I wrote this
  14.     mod.  All it does is tell the user that the file they want
  15.     is in off-line storage, and will not let him (or her)
  16.     download.
  17.  
  18.     v1.2    Upgrade for 4.22
  19.     v1.0    Initial version
  20.  
  21.  
  22.  
  23.     Before using this or any mod, back up your source !!!!!
  24.  
  25.                 PKZIP source *.c *.h *.mak
  26.  
  27.  
  28.     1. Load up SR.C.  Search for the send_file function, and
  29.        make the changes shown.  4.22 Note:  the code has
  30.        changed a little bit in this function, but it really
  31.        doesn't affect how to make the changes.  I have included
  32.        the 4.22 lines, with comments, to help you identify the
  33.        code in question.
  34.  
  35. void send_file(char *fn, int *sent, int *abort, char ft, char *sfn, int dn, lon
  36. g fs)
  37. {
  38.   int i,i1,ok;
  39.   double percent,t;
  40.   char s[81];
  41.  
  42.   if (!(exist(fn))) {                                             /* ADD */
  43.     i=0;                                                          /* ADD */
  44.     nl();                                                         /* ADD */
  45.     npr("2Unable to download, file is in off-line storage\r\n"); /* ADD */0
  46.     nl();                                                         /* ADD */
  47.   } else {                                                        /* ADD */
  48.       *sent=0;          /* ONLY IN 4.22 CODE */
  49.       *abort=0;         /* ONLY IN 4.22 CODE */
  50.       if (fs<0) {
  51.         i=get_protocol(xf_none);
  52.       } else {
  53.         if (dn==-1)
  54.           i=get_protocol(xf_down_temp);
  55.         else
  56.           i=get_protocol(xf_down);
  57.       }
  58.   }                                                               /* ADD */
  59.   ok=0;
  60.   percent=0.0;
  61.   if (check_batch_queue(sfn)) {
  62.  
  63.     DISCLAIMER:  I make no guarantees with this mod whatsoever.
  64.     Your installation of the mod is your acceptance of any
  65.     damages caused to your hardware or software, incendental or
  66.     otherwise.
  67.  
  68.     The mod was tested with the versions of WWIV mentioned in
  69.     this file. If the mod does NOT work for you, e-mail one of
  70.     the addresses above, and tell me EXACTLY what you did, what
  71.     the screen said, and what you did to try to fix it, and I'll
  72.     do what I can to help you out.
  73.  
  74.     PLEASE REPORT ANY BUGS TO ME AT THE ABOVE ADDRESS !!!!!!!
  75.     Any other comments, suggestions, hints, things I missed,
  76.     requests for new mods, and general "Thank you!"s are all VERY
  77.     welcomed, so drop me a line.  I don't mind updates to this
  78.     mod, but do request that you send me a courtesy copy of the
  79.     changes you made.
  80.  
  81.     *****************************************************************
  82.                               Subscribe to:
  83.  
  84.                     Modding with WWIV's Flying Chicken
  85.  
  86.               WWIVLink subtype 42456, Host @12456 (REQable)
  87.                WWIVNet subtype 42456, Host @2456 (REQable)
  88.                 IceNet subtype 42456, Host @2456 (REQable)
  89.  
  90.        All mods are released on this sub first.  Occasionally, they
  91.        make the mods subs, but usually much later.  Subscribe now!
  92.     *****************************************************************
  93.  
  94.                            The Flying Chicken
  95.        1@12456 (WWIVLink)  -  1@2456 (WWIVNet) - 1@2456 (IceNet)
  96.  
  97.                          THE INSANE ASYLUM BBS
  98.                     In Operation Since August, 1989
  99.  
  100.                    Running WWIV 4.22++  (Reg #21260)
  101.           SysOp: The Flying Chicken  -  CoSysOp: Dr. Doolittle
  102.                   Snarfable  -  Auto-SysOp Validation
  103.                  Callback Validation (Local calls only)
  104.                (214) 570-5950  -  USR Dual Std (v32/HST)
  105.  
  106.                           --- END OF LINE ---
  107. 9
  108. 9     2[ 5The Insane Asylum 2]───[ 5WWIV Support 2]───[ 5USR Dual Std (300-14.4K) 2]0
  109. 8     2───[ 5214/817 WWIVLink AC 2]───[ 5214 WWIVNet AC 2]───[ 5REQ/SNARFable 2]───0
  110.